//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<ICanvasElement.h>
///	@path	~/src/graphics/
///	@date	2007/12/05
///	@desc	Canvas element interface.

#pragma once

#include "xeres.h"

#include "graphics/ISprite.h"
#include "graphics/RenderContext.h"

namespace xeres {

	/*!
		\class	ICanvasElement
		\brief	Drawing elements in canvas.

		\sa ICanvas
	*/
	class ICanvasElement : public IObject
	{
	public:

		/// \name Constructor & Destructor
		//@{

		/// \ctor
		ICanvasElement( void );

		/// \dtor
		virtual ~ICanvasElement( void );

		//@}

		DECL_IOBJECT_INTERFACE( ICanvasElement , IObject );

	public:

		/// \name ICanvasElement Interface
		//@{

		/*!
			\brief		Render Canvas element.
		*/
		virtual void Render( RenderContext& rc , RefWeak<ISprite> sprite ) = 0;

		//@}
	};

} // namespace xeres
